#include<bits/stdc++.h>
using namespace std;
#define int long long
#define PII pair<int,int>
const int N = 1e5+10;
int n;
int a[N];
queue<int> q;

signed main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);

    cin>>n;
    for(int i=1;i<=n;i++)
        scanf("%lld",&a[i]);
    sort(a+1,a+n+1);
 //   cout<<a[1];
    for(int i=1;i<=n;i++)
    {
        if(q.size() && q.front()<a[i])q.pop();
        q.push(a[i]);
    }
    printf("%lld\n",q.size());
    return 0;
}
